//
//  StateParser.h
//  RestaurantX
//
//  Created by Nguyen Thanh Hai on 7/19/12.
//  Copyright (c) 2012 _eBars GbR_. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol StateParserDelegate <NSObject>

- (void) didEndStateParser:(NSArray*)resultDict success:(BOOL) yn;

@end

@interface StateParser : NSObject{
    id <StateParserDelegate> delegate;
    NSArray *resultDict;
    NSMutableData *resultData;
    NSURLConnection *theConnection;
}

@property (nonatomic, retain) NSArray *resultDict;
@property (nonatomic, retain) NSMutableData *resultData;
@property (nonatomic, assign) id <StateParserDelegate> delegate;

- (void)getStateWithDelegate:(id) theDelegate;

@end
